﻿using System;
using System.Collections.Generic;
using System.Text;

namespace homework3
{
    class SimpleShapeFactory
    {
        Random random = new Random();
        public triangle CreateTriangle(double bottom, double height)
        {
            return new triangle(bottom, height);
        }
        public rectangle CreateRectangle(double length, double width)
        {
            return new rectangle(length, width);
        }
        public Square CreateSquare(double length)
        {
            return new Square(length);
        }
    }
}
